import request from './request.ts'

// 获取文库开放的权限
export function getKnowUserRole(){
    return request({
      url:`/mgr/document/dc/library/administration`,
      method:"get"
    })
}

// new-获取权限标识
export function getAuthList(data){
  return request({
    url:`/mgr/document/auth`,
    method:'get',
    params:data
  })
}

// new-获取权限与人员信息
export function getDocAuthId(id){
  return request({
    url:`/mgr/document/auth/${id}`,
    method:'get'
  })
}
// 获取文库权限角色
export function getKnowUserPage(data){
  return request({
    url:`/mgr/document/dc/library/administration/page`,
    method:'get',
    params:data
  })
}
// 删除文库成员
export function delKnowUser(id){
  return request({
    url:`/mgr/document/dc/library/administration/del/${id}`,
    method:"DELETE",
  })
}
// 新增文库成员
export function saveKnowUser(data){
  return request({
    url:`/mgr/document/dc/library/administration/save`,
    method:"post",
    data
  })
}
